//财报小项目

import config from "@/config"
import http from "@/utils/request"

export default {

	//在内审和归档节点的数据
	GetDataPagingNew: {
		url: `${config.API_URL}/RiskBrain/GetDataPagingNew`,
		name: "在内审和归档节点的数据",
		get: async function(page,pageSize){
			return await http.get(this.url+`/${page}/${pageSize}`);
		}
	},





	//在内审和归档节点的数据
	GetDataPaging: {
		url: `${config.API_URL}/RiskBrain/GetDataPaging`,
		name: "在内审和归档节点的数据",
		get: async function(page,pageSize){
			return await http.get(this.url+`/${page}/${pageSize}`);
		}
	},
    //获取泛微风控财报流程在内审节点得到数据
    GetFlow: {
		url: `${config.API_URL}/RiskBrain/GetFlow`,
		name: "获取泛微风控财报流程在内审节点得到数据",
		get: async function(){
			return await http.get(this.url);
		}
	},
	//下单
	PlaceAnOrder:{
		url: `${config.API_URL}/RiskBrain/PlaceAnOrder`,
		name: "下单",
		headers: {
			'Content-Type': 'application/json'
		},
		post:async function(data){
			return await http.post(this.url,data);
		}
	},
	//流程归档
	doForceOver:{
		url: `${config.API_URL}/RiskBrain/doForceOver`,
		name: "下单",
		headers: {
			'Content-Type': 'application/json'
		},
		post:async function(data){
			return await http.post(this.url,data);
		}
	},
	//流程收回
	doForceDrawBack:{
		url: `${config.API_URL}/RiskBrain/doForceDrawBack`,
		name: "下单",
		headers: {
			'Content-Type': 'application/json'
		},
		post:async function(data){
			return await http.post(this.url,data);
		}
	}
}